package com.neusoft.view;

import com.neusoft.model.Employee;
import com.neusoft.service.EmployeeService;
import com.neusoft.service.impl.EmployeeServiceImpl;

public class Main {
    public static void main(String[] args) {
        //调用业务层的方法
        //1. 创建业务层的对象
        EmployeeService employeeService = new EmployeeServiceImpl();
        //2. 调用方法
        Employee employee = new Employee();
        boolean isRight = employeeService.save(employee);
        if (isRight) {
            System.out.println("添加成功......");
        }else {
            System.out.println("添加失败......");
        }
    }
}
